<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>AyoudaMe | Page <?php $keywords ?></title>
    <meta name="keywords" content="edit profile">
    <meta name="description" content="editr user profile">
    <link rel="shortcut icon" href="favicon.gif" />
   
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url()?>assets/js/jquery.flip.min.js"></script>
    
    <link rel="stylesheet" href="<?php echo base_url()?>assets/css/page_models/1/basic_style.css" type="text/css" media="all" >	
    <link rel="stylesheet" href="<?php echo base_url()?>assets/css/page_models/1/style.css" type="text/css" media="all" >
    <link rel="stylesheet" href="<?php echo base_url()?>assets/css/page_models/1/styleG.css" type="text/css" media="all" >	
    <script type="text/javascript" src="<?php echo base_url()?>assets/js/script.js"></script>
</head>

<body>
<?php     
    $user_email     = '';
    $user_id        = '';
    $user_name      = '';
    $user_location  = '';
    $user_avatar    = '';
    $user_age       = '';
    $user_description = '';
    $keywords       = ''; 
    $page_title     = '';
    $nbr_cases      = '';
    $prix_case      = '';
    $page_description    = '';
    $short_page_description = '';
    $sommeTotal = $prix_case * $nbr_cases
    
?>
<?php 
if (isset($user_records)) : foreach ($user_records as $userInfo):
    $user_email         = $userInfo->user_email;
    $user_id            = $userInfo->user_id;
    $user_name          = $userInfo->user_name;
    $user_location      = $userInfo->user_location;
    $user_avatar        = $userInfo->user_avatar;
    $user_age           = $userInfo->user_age; 
    $user_description   = $userInfo->user_description;
endforeach;

endif;
    
if (isset ($records)):  foreach($records as $row):                                 
    $page_title       = $row->title_page; 
    $nbr_cases        = $row->nbr_cases_page; 
    $prix_case        = $row->prix_case_page;
    $page_description = $row->description_page; 
    $keywords         = $row->keywords_page; 
    $page_id          = $row->id_page; 
    $short_page_description = $row->short_description_page;
?>

<p>Page rendered in {elapsed_time} seconds</p>
<div id="wrapper">
    
    <div id="content">
	<div id="header">
            <img src="<?php echo base_url()?>assets/img/pages/<?php echo $row->id_page ?>/header.png" height="208" width="828" alt="" />
        </div><!-- end header -->
    
        <img src="<?php echo base_url()?>assets/img/sep.png" height="17" width="960" alt="" />
        <div id="header_description" style= " width: 810px; ">
            <?php echo $short_page_description; ?>
        </div>
        
        <img id="lagrille" src="<?php echo base_url()?>assets/img/lagrille.png" height="81" width="241" alt=""  />
        <p class="links"> <strong>Liens rapides:</strong> <a href="#presentation-bio">Qui sont ils ?</a> <a href="#queferontils">Leur cause ?</a> <a href="#quefaire">Qu'est ce que la grille ?</a> <a href="#contact">Contact Presse/Partenaires</a> </p>

<?php
// Each sponsor is an element of the $sponsors array:
$sponsors = array(
	array('salah_benzakour','Ignite Casablanca','http://www.ignite.ma/'),
	array('empty','Intrested in this box !','http://empty.space/'),
        array('piximedia','We give beyond what you expected!','http://piximedia.ma'),
	array('fine_sms','Fine Sms','http://www.facebook.com/apps/application.php?id=181592448086&v=wall&ref=ts'),
	array('mediamob','Media Mobility ','http://www.media-mobility.com/'),
	array('synergie','Synergie Media, Web Agency','http://www.synergie-media.com/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('sbk','SeductionByKamal.com','http://www.seductionbykamal.com'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('bigbrother','Le blog qui libère','http://bigbrother.ma'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('martine_zussy','Martine Zussy soutient "2 Marocains à New York"!','http://www.haut-rhin-services.fr'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('taza_today','Taza Magazine','http://tazatoday.info'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('amineaboud','Amine Aboud soutient "2 Marocains à New York"!','#'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),
	array('empty','Intrested in this box !','http://empty.space/'),	
	array('ilyas_bakouch','Ilyas Bakouch.','http://www.isbkch.com/'),
	array('ahmed_kachkach','Ahmed Kachkach.','http://www.hlfstudio.com/'),	
);
// Randomizing the order of sponsors:
//shuffle($sponsors);
?>
	<div class="sponsorListHolder">
        <?php
			// Looping through the array:
			foreach($sponsors as $company)
			{
				echo'
				<div class="sponsor" title="Click to flip">
					<div class="sponsorFlip">
<!-- 						<img src="'.base_url().'assets/img/logos/'.$company[0].'.png" alt="More about '.$company[0].'" /> -->
						<img src="'.base_url().'assets/img/pages/'.$row->id_page.'/sponsors/'.$company[0].'.png" />
					</div>
					
					<div class="sponsorData">
						<div class="sponsorDescription">
							'.$company[1].'
						</div>
						<div class="sponsorURL">
							<a href="'.$company[2].'">'.$company[2].'</a>
						</div>
					</div>
				</div>
				';
			}
		?>        
    
      
    	<div class="clear"></div>
        
        
        
    </div><!-- end sponsorListHolder -->


    </div><!-- end content -->    
    <div id="footer" style="background: url(<?php echo base_url()?>assets/img/pages/<?php echo $page_id ?>/bio_bg.png) top center no-repeat #141414 ;"><a name="presentation-bio"></a>
      <table width="850" border="0" align="center" class="presentation-bio">
        <tr>
            <td>
                <p class="description bio">
                    <img src="<?php echo $user_avatar ?>" height="112" width="112" align="left" />
                    <?php echo $user_description ?>
                </p>

                <p class="description age">
                    Âge/Lieu: <?php echo $user_age ?> ans. <br />
                    Location: <?php echo $user_location ?><br />
            </td>
        </tr>
    </table>

      <a name="queferontils">
          <div class="title3">
              Pourquoi ont ils besoin de vos dons ?
          </div>
      </a>

      <p class="description">
          <?php echo $page_description ?>
      </p>
 
      <a name="jeveux_donner">
          <div class="title3">
              Oui, je veux aider !
          </div>
      </a>

        <p class="description centrer">
     <strong>Remplissez la grille!</strong> Cette grille est composée de <?php echo $nbr_cases ?> carrés, chaque carré représente une partie de la somme qui nous manque!</p>

        <p class="description centrer"> Vous pouvez <strong>réserver une ou plusieurs cases</strong> (à <?php echo $prix_case ?>€ par case) pour nous aider à rassembler la somme de <?php echo $sommeTotal ?>€. Cette case sera alors votre propriété, vous pourrez y afficher<strong> le logo de votre entreprise</strong>, y mettre <strong>un lien vers votre site</strong>, une photo de vous, votre nom, etc.</p>

        <p class="description centrer">Si vous réservez une case, vous serrez partenaire actif de notre operation, vous bénéficirez de la grande visiblité dont jouit cette page, figurerez (avec votre autorisation) dans une liste officielle de nos &quot;mécènes&quot;, et vous vivrez avec nous en direct notre operation ...</p>

        <p class="description centrer"><strong>Grille remplie = chi haja bezzaaaaf!</strong></p>
        </p>
        <a href="soutenir.php"><img id="bouton" src="<?php echo base_url()?>assets/img/bouton_acheter2.png" height="50" width="232" alt="" /></a>
    </div><!-- end footer -->

</div><!-- end wrapper -->
<?php endforeach; ?>

<?php endif; ?>

</body>
</html>